package com.yoomiito.app.utils;

import android.graphics.drawable.Drawable;

import com.yoomiito.app.base.App;


/************************************************************
 * Author:  linqiang
 * Description:     // 模块描述
 * Date: 2016/4/21
 ************************************************************/
public class ResUtil {
    public static String getString(int id) {
        return App.getApplication().getResources().getString(id);
    }
    public static int getColor(int id) {
        return App.getApplication().getResources().getColor(id);
    }

    public static String[] getStringArray(int id) {
        return App.getApplication().getResources().getStringArray(id);
    }
    public static int getSize(int id) {
        return App.getApplication().getResources().getDimensionPixelOffset(id);
    }

    public static float getSizeFloat(int id) {
        return App.getApplication().getResources().getDimensionPixelOffset(id);
    }

    public static Drawable getDrawable(int id) {
        return App.getApplication().getResources().getDrawable(id);
    }
}
